//
//  CALayer+Category.h
//  DCProject
//
//  Created by bigbing on 2019/4/8.
//  Copyright © 2019 bigbing. All rights reserved.
//

#import <QuartzCore/QuartzCore.h>

NS_ASSUME_NONNULL_BEGIN

@interface CALayer (Category)


- (void)setBorderColorFromUIColor:(UIColor *)color;


#pragma mark - 渐变色
+ (CAGradientLayer *)dc_gradientColorWidthFrame:(CGRect)frame startPoint:(CGPoint)startPoint endPoint:(CGPoint)endPoint colors:(NSArray *)colors locations:(NSArray<NSNumber *> *)locations;

@end

NS_ASSUME_NONNULL_END
